jQuery(function ($){

  //交易模式
    if ($('#edit-field-tradings-und-0-field-trading-und').val() == 19) {
      $('#edit-field-tradings-und-0-field-equity-trading').removeClass('come');
      $('#edit-field-tradings-und-0-field-property-trading').addClass('come');
      $('#edit-field-tradings-und-0-field-equity-trading input, #edit-field-tradings-und-0-field-equity-trading select').val('');
    }
    if ($('#edit-field-tradings-und-0-field-trading-und').val() == 20) {
      $('#edit-field-tradings-und-0-field-property-trading').removeClass('come');
      $('#edit-field-tradings-und-0-field-equity-trading').addClass('come');
      $('#edit-field-tradings-und-0-field-property-trading input, #edit-field-tradings-und-0-field-property-trading select').val('');
    }
    if ( $('#edit-field-tradings-und-0-field-trading-und').val() == '_none' || $('#edit-field-tradings-und-0-field-trading-und').val() == 21 ) {
      $('#edit-field-tradings-und-0-field-property-trading').removeClass('come');
      $('#edit-field-tradings-und-0-field-equity-trading').removeClass('come');
      $('#edit-field-tradings-und-0-field-equity-trading input, #edit-field-tradings-und-0-field-equity-trading select').val('');
      $('#edit-field-tradings-und-0-field-property-trading input, #edit-field-tradings-und-0-field-property-trading select').val('');
    }
  //国内股权交易分期付款
    if ( $('#edit-field-tradings-und-0-field-equity-trading-und-0-field-can-und').val() == 7 ) {
      $('#edit-field-tradings-und-0-field-equity-trading-und-0-field-floors, #edit-field-tradings-und-0-field-equity-trading-und-0-field-area, #edit-field-tradings-und-0-field-equity-trading-und-0-field-amount').addClass('come');
      $('#edit-field-tradings-und-0-field-equity-trading-und-0-field-floors input, #edit-field-tradings-und-0-field-equity-trading-und-0-field-area input, #edit-field-tradings-und-0-field-equity-trading-und-0-field-amount input').attr('required', 'required');
      $('#edit-field-tradings-und-0-field-equity-trading-und-0-field-area label, #edit-field-tradings-und-0-field-equity-trading-und-0-field-amount label, #edit-field-tradings-und-0-field-equity-trading-und-0-field-floors label').append('<span class="form-required" title="此项必填。">*</span>');
    } else {
      $('#edit-field-tradings-und-0-field-equity-trading-und-0-field-floors, #edit-field-tradings-und-0-field-equity-trading-und-0-field-area, #edit-field-tradings-und-0-field-equity-trading-und-0-field-amount').removeClass('come');
      $('#edit-field-tradings-und-0-field-equity-trading-und-0-field-floors input, #edit-field-tradings-und-0-field-equity-trading-und-0-field-area input, #edit-field-tradings-und-0-field-equity-trading-und-0-field-amount input').val('');
      $('#edit-field-tradings-und-0-field-equity-trading-und-0-field-floors input, #edit-field-tradings-und-0-field-equity-trading-und-0-field-area input, #edit-field-tradings-und-0-field-equity-trading-und-0-field-amount input').removeAttr('required');
      $('#edit-field-tradings-und-0-field-equity-trading-und-0-field-floors label .form-required, #edit-field-tradings-und-0-field-equity-trading-und-0-field-area label .form-required, #edit-field-tradings-und-0-field-equity-trading-und-0-field-amount label .form-required').remove();
    }
  //产权交易分期付款
    if ( $('#edit-field-tradings-und-0-field-property-trading-und-0-field-can-und').val() == 7 ) {
      $('#edit-field-tradings-und-0-field-property-trading-und-0-field-rate, #edit-field-tradings-und-0-field-property-trading-und-0-field-distance, #edit-field-tradings-und-0-field-property-trading-und-0-field-height, #edit-field-tradings-und-0-field-property-trading-und-0-field-area').addClass('come');
      $('#edit-field-tradings-und-0-field-property-trading-und-0-field-rate input, #edit-field-tradings-und-0-field-property-trading-und-0-field-distance input, #edit-field-tradings-und-0-field-property-trading-und-0-field-height input, #edit-field-tradings-und-0-field-property-trading-und-0-field-area input').attr('required', 'required');
      $('#edit-field-tradings-und-0-field-property-trading-und-0-field-distance label, #edit-field-tradings-und-0-field-property-trading-und-0-field-rate label, #edit-field-tradings-und-0-field-property-trading-und-0-field-height label, #edit-field-tradings-und-0-field-property-trading-und-0-field-area label').append('<span class="form-required" title="此项必填。">*</span>');
    } else {
      $('#edit-field-tradings-und-0-field-property-trading-und-0-field-rate, #edit-field-tradings-und-0-field-property-trading-und-0-field-distance, #edit-field-tradings-und-0-field-property-trading-und-0-field-height, #edit-field-tradings-und-0-field-property-trading-und-0-field-area').removeClass('come');
      $('#edit-field-tradings-und-0-field-property-trading-und-0-field-rate input, #edit-field-tradings-und-0-field-property-trading-und-0-field-distance input, #edit-field-tradings-und-0-field-property-trading-und-0-field-height input, #edit-field-tradings-und-0-field-property-trading-und-0-field-area inpout').val('');
      $('#edit-field-tradings-und-0-field-property-trading-und-0-field-rate input, #edit-field-tradings-und-0-field-property-trading-und-0-field-distance input, #edit-field-tradings-und-0-field-property-trading-und-0-field-height input, #edit-field-tradings-und-0-field-property-trading-und-0-field-area input').removeAttr('required');
      $('#edit-field-tradings-und-0-field-property-trading-und-0-field-rate label .form-required, #edit-field-tradings-und-0-field-property-trading-und-0-field-distance label .form-required, #edit-field-tradings-und-0-field-property-trading-und-0-field-height label .form-required, #edit-field-tradings-und-0-field-property-trading-und-0-field-area label .form-required').remove();
    }


  //立项
  if ( $('#edit-field-project-und-0-field-can-sold-und-125').attr('checked') ) {
    $('#edit-field-project-und-0-field-floors').addClass('come');
  } else {
    $('#edit-field-project-und-0-field-floors').removeClass('come');
      $('#edit-field-project-und-0-field-floors').removeClass('come');
    $('#edit-field-project-und-0-field-floors-und-0-value').val('');
    $('#edit-field-project-und-0-field-floors-und-0-value').removeAttr('required');
    $('#edit-field-project-und-0-field-floors label .form-required').remove();
  }


  //项目类型
  $("#edit-field-project-und-0-field-this-und option[value=66]").remove();
  $('#edit-field-project-und-0-field-after').addClass('come');
  if ( $('#edit-field-estate-projects-und').val() != 40 ) {
    $("#edit-field-project-und-0-field-this-und option[value=66]").remove();
    $('#edit-field-project-und-0-field-after-und-0-field-complex').removeClass('come');
    $('#edit-field-project-und-0-field-after-und-0-field-single').addClass('come');
    $('#edit-field-project-und-0-field-after-und-0-field-complex input, #edit-field-project-und-0-field-after-und-0-field-complex select').val('');
  }
  if ( $('#edit-field-estate-projects-und').val() == 40 ) {
    $("#edit-field-project-und-0-field-this-und").append('<option value="66">综合体</option>');
    $('#edit-field-project-und-0-field-after-und-0-field-single').removeClass('come');
    $('#edit-field-project-und-0-field-after-und-0-field-complex').addClass('come');
    $('#edit-field-project-und-0-field-after-und-0-field-single input, #edit-field-project-und-0-field-after-und-0-field-single select').val('');
  }
  if ( $('#edit-field-estate-projects-und').val() == '_none' ) {
    $('#edit-field-project-und-0-field-after').removeClass('come');
    $('#edit-field-project-und-0-field-after input, #edit-field-project-und-0-field-after select').val('');
  }

  //未来产权划分
  if ( $('#edit-field-equity-und-0-field-divide-und').val() == 93 ) {
    $('#edit-field-equity-und-0-field-area').css('display', 'block');
  } else {
    $('#edit-field-equity-und-0-field-area').css('display', 'none');
    $('#edit-field-equity-und-0-field-area-und-0-value').val('');
  }

  //政府补贴
  if ( $('#edit-field-subsidies-und-0-field-price-und-0-value').val().length > 0 ) {
    $('#edit-field-subsidies-und-0-field-rate-und-0-value').val('');
    $('#edit-field-subsidies-und-0-field-rate-und-0-value').attr('disabled', 'disabled');
  }
  if ( $('#edit-field-subsidies-und-0-field-rate-und-0-value').val().length > 0 ) {
    $('#edit-field-subsidies-und-0-field-price-und-0-value').val('');
    $('#edit-field-subsidies-und-0-field-price-und-0-value').attr('disabled', 'disabled');
  }
  if ( $('#edit-field-subsidies-und-0-field-rate-und-0-value').val().length == 0 && $('#edit-field-subsidies-und-0-field-price-und-0-value').val().length == 0 ) {
    $('#edit-field-subsidies-und-0-field-price-und-0-value').removeAttr('disabled');
    $('#edit-field-subsidies-und-0-field-rate-und-0-value').removeAttr('disabled');
  }
  //担保
  if ( $('#edit-field-suit-debt-und-0-field-water-und').val() == 102 ) {
    $('#edit-field-suit-debt-und-0-field-price').addClass('come');
    //$('#edit-field-suit-debt-und-0-field-price input').attr('required');
    //$('#edit-field-suit-debt-und-0-field-price input').attr('datatype', '*');
    $('#edit-field-suit-debt-und-0-field-price input').attr('required', 'required');
    $('#edit-field-suit-debt-und-0-field-price label').append('<span class="form-required" title="此项必填。">*</span>');
  } else {
    $('#edit-field-suit-debt-und-0-field-price input').val('');
    $('#edit-field-suit-debt-und-0-field-price').removeClass('come');
    $('#edit-field-suit-debt-und-0-field-price input').removeAttr('required');
    $('#edit-field-suit-debt-und-0-field-price label .form-required').remove();
  }

  //项目人员
  if ( $('#edit-field-people-und-0-field-water-und').val() == 102 ) {
    $('#edit-field-people-und-0-field-floors, #edit-field-people-und-0-field-price').addClass('come');
    //$('#edit-field-people-und-0-field-floors input, #edit-field-people-und-0-field-price input').attr('required');
    $('#edit-field-people-und-0-field-floors input, #edit-field-people-und-0-field-price input').attr('required', 'required');
    //$('#edit-field-people-und-0-field-price input').attr('required', 'required');
    $('#edit-field-people-und-0-field-floors label, #edit-field-people-und-0-field-price label').append('<span class="form-required" title="此项必填。">*</span>');
  } else {
    $('#edit-field-people-und-0-field-floors, #edit-field-people-und-0-field-price').removeClass('come');
    $('#edit-field-people-und-0-field-floors input, #edit-field-people-und-0-field-price input').val('');
    $('#edit-field-people-und-0-field-floors input, #edit-field-people-und-0-field-price input').removeAttr('required');
    $('#edit-field-people-und-0-field-floors label .form-required, #edit-field-people-und-0-field-price label .form-required').remove();
  }

  //部分产权售出
  if ( $('#edit-field-yes-und').val() == 116 ) {
    $('#edit-field-area').addClass('income');
    $('#edit-field-area input').attr('required', 'required');
    $('#edit-field-area label').append('<span class="form-required" title="此项必填。">*</span>');
  } else {
    $('#edit-field-area').removeClass('income');
    $('#edit-field-area input').val('');
    $('#edit-field-area input').removeAttr('required');
    $('#edit-field-area label .form-required').remove();
  }

  //民扰
  if ( $('#edit-field-civil-und-0-field-yes-und').val() == 116 ) {
    $('#edit-field-civil-und-0-field-price').addClass('come');
    $('#edit-field-civil-und-0-field-price input').attr('required', 'required');
    $('#edit-field-civil-und-0-field-price label').append('<span class="form-required" title="此项必填。">*</span>');
  } else {
    $('#edit-field-civil-und-0-field-price').removeClass('come');
    $('#edit-field-civil-und-0-field-price input').val('');
    $('#edit-field-civil-und-0-field-price input').removeAttr('required');
    $('#edit-field-civil-und-0-field-price label .form-required').remove();
  }


});


jQuery(document).ready(function ($){



  //for taoloudi
  //启用表单验证
  //$('#content .region #block-system-main .content form.node-form').Validform();
  //
  //交易模式
  $('#edit-field-tradings-und-0-field-trading-und').change(function (){
    if ($('#edit-field-tradings-und-0-field-trading-und').val() == 19) {
      $('#edit-field-tradings-und-0-field-equity-trading').removeClass('come');
      $('#edit-field-tradings-und-0-field-property-trading').addClass('come');
      $('#edit-field-tradings-und-0-field-equity-trading input, #edit-field-tradings-und-0-field-equity-trading select').val('');
    }
    if ($('#edit-field-tradings-und-0-field-trading-und').val() == 20) {
      $('#edit-field-tradings-und-0-field-property-trading').removeClass('come');
      $('#edit-field-tradings-und-0-field-equity-trading').addClass('come');
      $('#edit-field-tradings-und-0-field-property-trading input, #edit-field-tradings-und-0-field-property-trading select').val('');
    }
    if ( $('#edit-field-tradings-und-0-field-trading-und').val() == '_none' || $('#edit-field-tradings-und-0-field-trading-und').val() == 21 ) {
      $('#edit-field-tradings-und-0-field-property-trading').removeClass('come');
      $('#edit-field-tradings-und-0-field-equity-trading').removeClass('come');
      $('#edit-field-tradings-und-0-field-equity-trading input, #edit-field-tradings-und-0-field-equity-trading select').val('');
      $('#edit-field-tradings-und-0-field-property-trading input, #edit-field-tradings-und-0-field-property-trading select').val('');
    }
  });
  //国内股权交易分期付款
  $('#edit-field-tradings-und-0-field-equity-trading-und-0-field-can-und').change(function() {
    if ( $('#edit-field-tradings-und-0-field-equity-trading-und-0-field-can-und').val() == 7 ) {
      $('#edit-field-tradings-und-0-field-equity-trading-und-0-field-floors, #edit-field-tradings-und-0-field-equity-trading-und-0-field-area, #edit-field-tradings-und-0-field-equity-trading-und-0-field-amount').addClass('come');
      $('#edit-field-tradings-und-0-field-equity-trading-und-0-field-floors input, #edit-field-tradings-und-0-field-equity-trading-und-0-field-area input, #edit-field-tradings-und-0-field-equity-trading-und-0-field-amount input').attr('required', 'required');
      $('#edit-field-tradings-und-0-field-equity-trading-und-0-field-area label, #edit-field-tradings-und-0-field-equity-trading-und-0-field-amount label, #edit-field-tradings-und-0-field-equity-trading-und-0-field-floors label').append('<span class="form-required" title="此项必填。">*</span>');
    } else {
      $('#edit-field-tradings-und-0-field-equity-trading-und-0-field-floors, #edit-field-tradings-und-0-field-equity-trading-und-0-field-area, #edit-field-tradings-und-0-field-equity-trading-und-0-field-amount').removeClass('come');
      $('#edit-field-tradings-und-0-field-equity-trading-und-0-field-floors input, #edit-field-tradings-und-0-field-equity-trading-und-0-field-area input, #edit-field-tradings-und-0-field-equity-trading-und-0-field-amount input').val('');
      $('#edit-field-tradings-und-0-field-equity-trading-und-0-field-floors input, #edit-field-tradings-und-0-field-equity-trading-und-0-field-area input, #edit-field-tradings-und-0-field-equity-trading-und-0-field-amount input').removeAttr('required');
      $('#edit-field-tradings-und-0-field-equity-trading-und-0-field-floors label .form-required, #edit-field-tradings-und-0-field-equity-trading-und-0-field-area label .form-required, #edit-field-tradings-und-0-field-equity-trading-und-0-field-amount label .form-required').remove();
    }
  });
  //产权交易分期付款
  $('#edit-field-tradings-und-0-field-property-trading-und-0-field-can-und').change(function() {
    if ( $('#edit-field-tradings-und-0-field-property-trading-und-0-field-can-und').val() == 7 ) {
      $('#edit-field-tradings-und-0-field-property-trading-und-0-field-rate, #edit-field-tradings-und-0-field-property-trading-und-0-field-distance, #edit-field-tradings-und-0-field-property-trading-und-0-field-height, #edit-field-tradings-und-0-field-property-trading-und-0-field-area').addClass('come');
      $('#edit-field-tradings-und-0-field-property-trading-und-0-field-rate input, #edit-field-tradings-und-0-field-property-trading-und-0-field-distance input, #edit-field-tradings-und-0-field-property-trading-und-0-field-height input, #edit-field-tradings-und-0-field-property-trading-und-0-field-area input').attr('required', 'required');
      $('#edit-field-tradings-und-0-field-property-trading-und-0-field-distance label, #edit-field-tradings-und-0-field-property-trading-und-0-field-rate label, #edit-field-tradings-und-0-field-property-trading-und-0-field-height label, #edit-field-tradings-und-0-field-property-trading-und-0-field-area label').append('<span class="form-required" title="此项必填。">*</span>');
    } else {
      $('#edit-field-tradings-und-0-field-property-trading-und-0-field-rate, #edit-field-tradings-und-0-field-property-trading-und-0-field-distance, #edit-field-tradings-und-0-field-property-trading-und-0-field-height, #edit-field-tradings-und-0-field-property-trading-und-0-field-area').removeClass('come');
      $('#edit-field-tradings-und-0-field-property-trading-und-0-field-rate input, #edit-field-tradings-und-0-field-property-trading-und-0-field-distance input, #edit-field-tradings-und-0-field-property-trading-und-0-field-height input, #edit-field-tradings-und-0-field-property-trading-und-0-field-area inpout').val('');
      $('#edit-field-tradings-und-0-field-property-trading-und-0-field-rate input, #edit-field-tradings-und-0-field-property-trading-und-0-field-distance input, #edit-field-tradings-und-0-field-property-trading-und-0-field-height input, #edit-field-tradings-und-0-field-property-trading-und-0-field-area input').removeAttr('required');
      $('#edit-field-tradings-und-0-field-property-trading-und-0-field-rate label .form-required, #edit-field-tradings-und-0-field-property-trading-und-0-field-distance label .form-required, #edit-field-tradings-und-0-field-property-trading-und-0-field-height label .form-required, #edit-field-tradings-und-0-field-property-trading-und-0-field-area label .form-required').remove();
    }
  });


  //立项
  $('#edit-field-project-und-0-field-can-sold-und-125').change(function() {
    if ( $('#edit-field-project-und-0-field-can-sold-und-125').attr('checked') ) {
      $('#edit-field-project-und-0-field-floors').addClass('come');
      $('#edit-field-project-und-0-field-floors-und-0-value').attr('required', 'required');
      $('#edit-field-project-und-0-field-floors label').append('<span class="form-required" title="此项必填。">*</span>');
    } else {
      $('#edit-field-project-und-0-field-floors').removeClass('come');
      $('#edit-field-project-und-0-field-floors-und-0-value').val('');
      $('#edit-field-project-und-0-field-floors-und-0-value').removeAttr('required');
      $('#edit-field-project-und-0-field-floors label .form-required').remove();
    }
  });

  //项目类型
  $("#edit-field-project-und-0-field-this-und option[value=66]").remove();
  $('#edit-field-estate-projects-und').change(function() {
    $('#edit-field-project-und-0-field-after').addClass('come');
    if ( $('#edit-field-estate-projects-und').val() != 40 ) {
      $("#edit-field-project-und-0-field-this-und option[value=66]").remove();
      $('#edit-field-project-und-0-field-after-und-0-field-complex').removeClass('come');
      $('#edit-field-project-und-0-field-after-und-0-field-single').addClass('come');
      $('#edit-field-project-und-0-field-after-und-0-field-complex input, #edit-field-project-und-0-field-after-und-0-field-complex select').val('');
    }
    if ( $('#edit-field-estate-projects-und').val() == 40 ) {
      $("#edit-field-project-und-0-field-this-und").append('<option value="66">综合体</option>');
      $('#edit-field-project-und-0-field-after-und-0-field-single').removeClass('come');
      $('#edit-field-project-und-0-field-after-und-0-field-complex').addClass('come');
      $('#edit-field-project-und-0-field-after-und-0-field-single input, #edit-field-project-und-0-field-after-und-0-field-single select').val('');
    }
    if ( $('#edit-field-estate-projects-und').val() == '_none' ) {
      $('#edit-field-project-und-0-field-after').removeClass('come');
      $('#edit-field-project-und-0-field-after input, #edit-field-project-und-0-field-after select').val('');
    }
  });

  //未来产权划分
  $('#edit-field-equity-und-0-field-divide-und').change(function() {
    if ( $('#edit-field-equity-und-0-field-divide-und').val() == 93 ) {
      $('#edit-field-equity-und-0-field-area').css('display', 'block');
    } else {
      $('#edit-field-equity-und-0-field-area').css('display', 'none');
      $('#edit-field-equity-und-0-field-area-und-0-value').val('');
    }
  });

  //政府补贴
  $('#edit-field-subsidies-und-0-field-price-und-0-value, #edit-field-subsidies-und-0-field-rate-und-0-value').change(function() {
    if ( $('#edit-field-subsidies-und-0-field-price-und-0-value').val().length > 0 ) {
      $('#edit-field-subsidies-und-0-field-rate-und-0-value').val('');
      $('#edit-field-subsidies-und-0-field-rate-und-0-value').attr('disabled', 'disabled');
    }
    if ( $('#edit-field-subsidies-und-0-field-rate-und-0-value').val().length > 0 ) {
      $('#edit-field-subsidies-und-0-field-price-und-0-value').val('');
      $('#edit-field-subsidies-und-0-field-price-und-0-value').attr('disabled', 'disabled');
    }
    if ( $('#edit-field-subsidies-und-0-field-rate-und-0-value').val().length == 0 && $('#edit-field-subsidies-und-0-field-price-und-0-value').val().length == 0 ) {
      $('#edit-field-subsidies-und-0-field-price-und-0-value').removeAttr('disabled');
      $('#edit-field-subsidies-und-0-field-rate-und-0-value').removeAttr('disabled');
    }
  });

  //担保
  $('#edit-field-suit-debt-und-0-field-water-und').change(function() {
    if ( $('#edit-field-suit-debt-und-0-field-water-und').val() == 102 ) {
      $('#edit-field-suit-debt-und-0-field-price').addClass('come');
      //$('#edit-field-suit-debt-und-0-field-price input').attr('required');
      //$('#edit-field-suit-debt-und-0-field-price input').attr('datatype', '*');
      $('#edit-field-suit-debt-und-0-field-price input').attr('required', 'required');
      $('#edit-field-suit-debt-und-0-field-price label').append('<span class="form-required" title="此项必填。">*</span>');
    } else {
      $('#edit-field-suit-debt-und-0-field-price input').val('');
      $('#edit-field-suit-debt-und-0-field-price').removeClass('come');
      $('#edit-field-suit-debt-und-0-field-price input').removeAttr('required');
      $('#edit-field-suit-debt-und-0-field-price label .form-required').remove();
    }
  });

  //项目人员
  $('#edit-field-people-und-0-field-water-und').change(function() {
    if ( $('#edit-field-people-und-0-field-water-und').val() == 102 ) {
      $('#edit-field-people-und-0-field-floors, #edit-field-people-und-0-field-price').addClass('come');
      //$('#edit-field-people-und-0-field-floors input, #edit-field-people-und-0-field-price input').attr('required');
      $('#edit-field-people-und-0-field-floors input, #edit-field-people-und-0-field-price input').attr('required', 'required');
      //$('#edit-field-people-und-0-field-price input').attr('required', 'required');
      $('#edit-field-people-und-0-field-floors label, #edit-field-people-und-0-field-price label').append('<span class="form-required" title="此项必填。">*</span>');
    } else {
      $('#edit-field-people-und-0-field-floors, #edit-field-people-und-0-field-price').removeClass('come');
      $('#edit-field-people-und-0-field-floors input, #edit-field-people-und-0-field-price input').val('');
      $('#edit-field-people-und-0-field-floors input, #edit-field-people-und-0-field-price input').removeAttr('required');
      $('#edit-field-people-und-0-field-floors label .form-required, #edit-field-people-und-0-field-price label .form-required').remove();
    }
  });

  //部分产权售出
  $('#edit-field-yes-und').change(function() {
    if ( $('#edit-field-yes-und').val() == 116 ) {
      $('#edit-field-area').addClass('income');
      $('#edit-field-area input').attr('required', 'required');
      $('#edit-field-area label').append('<span class="form-required" title="此项必填。">*</span>');
    } else {
      $('#edit-field-area').removeClass('income');
      $('#edit-field-area input').val('');
      $('#edit-field-area input').removeAttr('required');
      $('#edit-field-area label .form-required').remove();
    }
  });

  //民扰
  $('#edit-field-civil-und-0-field-yes-und').change(function() {
    if ( $('#edit-field-civil-und-0-field-yes-und').val() == 116 ) {
      $('#edit-field-civil-und-0-field-price').addClass('come');
      $('#edit-field-civil-und-0-field-price input').attr('required', 'required');
      $('#edit-field-civil-und-0-field-price label').append('<span class="form-required" title="此项必填。">*</span>');
    } else {
      $('#edit-field-civil-und-0-field-price').removeClass('come');
      $('#edit-field-civil-und-0-field-price input').val('');
      $('#edit-field-civil-und-0-field-price input').removeAttr('required');
      $('#edit-field-civil-und-0-field-price label .form-required').remove();
    }
  });


});
